#ifndef _TOOLS_H_
#define _TOOLS_H_

#include <stdint.h>
#include <stdio.h>
#include <stddef.h>

uint16_t crc16_modbus(void *buf, uint16_t len);
int SN_CheckSum(unsigned char *check, size_t size); 
char sn_to_hex(char *src, char *dst);
char calc_crc8(uint8_t *buf, uint8_t length);
char check_sum(char *data, int len);
uint8_t my_atoi(char *b);
size_t my_strToHex(unsigned char *des,char *src);
#endif